<?php 
include 'ZionHeader.inc';
include 'DatabaseConnect.inc';

$commentText = $_POST['commentText'];
$VID = $_POST['ID'];
$userID = $_SESSION['UName'];
$TimeStamp = date(r);
$detailsID = $_POST['detailsID'];

$query = "INSERT INTO Comment (Timestamp, CommentText, VehicleID, userID) values ('$TimeStamp', '$commentText', '$VID', '$userID')";
mysql_query($query);

echo "<h3>Comment Successfully Added!</h3>";
echo "<a href='announcement.php?detailsID=".$detailsID."'>Return To Announcement</a>";





?>